﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Site.Master" AutoEventWireup="true"
    CodeBehind="GiftPurchase.aspx.cs" Inherits="FortuneHeaven.Web.Pages.Shop.GiftPurchase" %>

<%@ Register TagPrefix="uc1" TagName="SePagination" Src="~/Controls/SePagination.ascx" %>
<%@ Register Src="~/Controls/LoginPanel.ascx" TagName="login" TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="stylesheet" href="../../Content/CSS/public.css" />
    <link type="text/css" rel="stylesheet" href="../../Content/CSS/prizes.css" />
    <style type="text/css">
        .headpic .hcwdwp
        {
            background-image: url("../../Content/Image/Common/spbg-06.jpg");
            background-repeat: no-repeat;
            color: #4F5152;
            height: 36px;
            line-height: 36px;
            margin: 10px auto;
            text-align: center;
            width: 187px;
        }
        .headpic .hcye
        {
            color: #3B3B3B;
            height: 30px;
            line-height: 30px;
            margin: 10px auto 30px;
            width: 187px;
        }
        .headpic .hcye em
        {
            color: #ED5400;
        }
        .tpage
        {
            height: 40px;
            line-height: 40px;
            text-align: center;
        }
        .tpage .front
        {
            color: #414141;
        }
        .tpage .tl
        {
            color: #C27443;
        }
        .tpage a
        {
            color: #3B5A6E;
            margin: 0 10px;
        }
    </style>
    <script type="text/javascript">
        function alertPurchase() {
            if (confirm("是否确定购买?")) {
                return true;
            }
            else {
                return false;
            }
        }

        function ShowDetail(index) {
            var target = $(".prizedetail");
            var div = $("#prizelist" + index)
            target.find("img:first").attr("src", div.find("img:first").attr("src"));
            target.find("#giftname").html(div.find("h1:first").html());
            target.find("#giftvalue").html(div.find("em:first").html());
            target.find("#giftDesc").html(div.find("input:hidden").val());
            target.find("#btP").attr("href", div.find(".subpur").attr("href"));
            target.show();
        }

        function HiddenShow() {
            var target = $(".prizedetail");
            target.hide();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <div class="subnav">
        <div class="con conone">
            </div>
    </div>
    <div id="main">
        <div class="mleft">
            <div class="headpic" id="divHeadpic" runat="server" visible="false">
                <p>
                    <span class="left">用户名称:<asp:Literal ID="ltUserName" runat="server"></asp:Literal></span></p>
                <div class="picture">
                    <a href="javascript://">
                        <img id="imgHead" runat="server" class="useselectimg" style="width: 185px; height: 300px;"
                            src="../../Content/Image/Main/ssbg-03.jpg"></a></div>
                <div class="hcwdwp weight">
                    我的物品</div>
                <div class="hcye">
                    奖券余额：<em><asp:Literal ID="ltFortune" runat="server"></asp:Literal></em></div>
            </div>
            <uc:login ID="uclogin" runat="server"></uc:login>
        </div>
        <div class="mright">
            <div class="prizertit">
                <span class="left">奖品</span>
            </div>
            <div class="prizesub">
                <asp:Literal ID="ltHead" runat="server"></asp:Literal>
            </div>
            <div class="prizeshow">
                <asp:Repeater ID="rpGift" runat="server">
                    <ItemTemplate>
                        <div class="prizelist" id="prizelist<%# Container.ItemIndex %>">
                            <p>
                                <img style="width: 100px; height: 100px;" src='<%#  GetPagesURL(FortuneHeavenCommon.ComMethod.CommonPath.Gift, Eval("Image"))%>' /></p>
                            <div class="prizebox">
                                <h1>
                                    <%#Eval("Name")%></h1>
                                <h1>
                                    现需奖券： <em>
                                        <%#Eval("Price")%></h1>
                                </em></h1>
                                <input type="hidden" value="<%#Eval("Description")%>" />
                            </div>
                            <h2>
                                <asp:LinkButton CssClass="subpur" ID="lbPurchase" OnClick="PurchaseHead" runat="server"
                                    CommandArgument='<%#Eval("ID")%>'><img src="../../Content/Image/Main/pbg-06.jpg"/></asp:LinkButton>
                                <a href="javascript:ShowDetail('<%# Container.ItemIndex %>');">
                                    <img src="../../Content/Image/Main/pbg-07.jpg" /></a></h2>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
                <div class="clear">
                </div>
                <div class="tpage">
                    <uc1:SePagination ID="usPager" runat="server" />
                </div>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="prizedetail" style="display: none">
        <p>
            奖品介绍</p>
        <div class="pgift">
            <div class="left">
                <a href="javascript://">
                    <img src="../../Content/Image/Main/pbg-04.jpg"></a></div>
            <div class="right">
                <ul>
                    <li><span>奖品名称：</span><em id="giftname"></em></li>
                    <li><span>兑换奖券：</span><span id="giftvalue" style="font-weight: normal"></span>奖券</li>
                    <li></li>
                    <li><span>剩余量：</span>大量</li>
                </ul>
            </div>
            <div class="clear">
            </div>
        </div>
        <h1>
            兑换需知！</h1>
        <h1>
            1、与我公司合作的快递公司为中通快递，因此中通快递能到达的地方，我们都将免费邮寄给您(不含港澳台及其它国家，)中通快递不能到达的地方，我们将为您转发EMS但此邮费需您从奖券中扣除。</h1>
        <h1>
            2、礼品颜色、图案会随机发送，一切以实物为准。</h1>
        <h2>
            商品说明：</h2>
        <h3 id="giftDesc">
        </h3>
        <h4>
        </h4>
        <div class="button">
            <a id="btP" href="javascript://">
                <img src="../../Content/Image/Main/pd1.jpg"></a><a href="javascript:HiddenShow();"><img
                    src="../../Content/Image/Main/pd2.jpg"></a></div>
    </div>
</asp:Content>
